package com.rz.spark.utils

object NumberFormat {
  def toInt(str :String):Int={
    try {
      str.toInt
    } catch {
      case _:Exception =>0
    }
  }

  def toDouble(str:String):Double={
    try {
      str.toDouble
    } catch {
      case _:Exception =>0
    }
  }
}
